﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YNCNumberSys.Entity
{
    public class PaperCodeEntity
    {
        int m_iNum = 1;
        /// <summary>
        /// 序号，这个零件序号对应，如果3，6，就是第3条和第六条各对应一个
        /// </summary>
        public int Num
        {
            get { return m_iNum; }
            set { m_iNum = value; }
        }
        /// <summary>
        /// 外协
        /// </summary>
        int? m_wx = null;
        public int? Wx
        {
            get { return m_wx; }
            set { m_wx = value; }
        }
        /// <summary>
        /// 作废
        /// </summary>
        int? m_zf = null;
        public int? Zf
        {
            get { return m_zf; }
            set { m_zf = value; }
        }
        /// <summary>
        /// 申请人账户
        /// </summary>
        string m_zh = string.Empty;
        public string Zh
        {
            get { return m_zh; }
            set { m_zh = value; }
        }
        /// <summary>
        /// A号。
        /// </summary>
        string m_ah = string.Empty;
        public string Ah
        {
            get { return m_ah; }
            set { m_ah = value; }
        }
        /// <summary>
        /// 零件序号。
        /// </summary>
        string m_ljxh = string.Empty;
        public string Ljxh
        {
            get { return m_ljxh; }
            set { m_ljxh = value; }
        }
        /// <summary>
        /// 图纸编号
        /// </summary>
        string m_tzbh = string.Empty;
        public string Tzbh
        {
            get { return m_tzbh; }
            set { m_tzbh = value; }
        }
        /// <summary>
        /// 图纸名称
        /// </summary>
        string m_mc = string.Empty;
        public string Mc
        {
            get { return m_mc; }
            set { m_mc = value; }
        }
        /// <summary>
        /// 外协单位
        /// </summary>
        string m_wxdw = string.Empty;
        public string Wxdw
        {
            get { return m_wxdw; }
            set { m_wxdw = value; }
        }
        /// <summary>
        /// 图纸类型
        /// </summary>
        string m_tzlx = string.Empty;
        public string Tzlx
        {
            get { return m_tzlx; }
            set { m_tzlx = value; }
        }

        /// <summary>
        /// [规格]
        /// </summary>
        string m_gz = string.Empty;
        public string Gz
        {
            get { return m_gz; }
            set { m_gz = value; }
        }
        /// <summary>
        /// [机床型号]
        /// </summary>
        string m_jcxh = string.Empty;
        public string Jcxh
        {
            get { return m_jcxh; }
            set { m_jcxh = value; }
        }
        /// <summary>
        /// 审核人
        /// </summary>
        string m_shr = string.Empty;
        public string Shr
        {
            get { return m_shr; }
            set { m_shr = value; }
        }
    }
    //public class cmp : IComparer //注意一定要是“public”，一定要是“class”，一定要是“IComparer”，“cmp”为自己随便起的名。
    //{
    //    public int Compare(object x, object y) //这里很坑，一定注意必须为int，“Compare”看似是命名一个函数，但只能用这一个名字，object也不能改！！
    //    {
    //        PaperCodeEntity a = (PaperCodeEntity)(x);
    //        PaperCodeEntity b = (PaperCodeEntity)(y);//然后直接强转（很蠢）
    //        if (a.Num < b.Num) return -1;//小于0为x小于y
    //        else if (a.Num > b.Num) return 1;//大于0为x大于y
    //        else return 0;//等于0为x等于y
    //    }
    //}
    //public class cmp : IComparable<PaperCodeEntity>
    //{
    //    public string Fimage { get; set; }
    //    public long Ftime { get; set; }

    //    public int CompareTo(SignList other)
    //    {
    //        return Ftime.CompareTo(other.Ftime);
    //    }
    //}

}
